﻿/**
 * Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see LICENSE.html or http://ckeditor.com/license
 */

CKEDITOR.editorConfig = function( config ) {



config.protectedSource.push( /<\?[\s\S]*?\?>/g );   // PHP code
config.protectedSource.push( /<%[\s\S]*?%>/g );   // ASP code
config.protectedSource.push( /(]+>[\s|\S]*?<\/asp:[^\>]+>)|(]+\/>)/gi );   // ASP.Net code

config.language = 'ru';

config.emailProtection = 'mt(NAME,DOMAIN,SUBJECT,BODY)';

config.removePlugins = 'scayt,menubutton,contextmenu';

config.toolbarCanCollapse = false;
config.disableNativeSpellChecker = false;
//config.browserContextMenuOnCtrl = false;
config.scayt_autoStartup = true;




config.extraPlugins = 'jwplayer,syntaxhighlight,spoiler';


config.toolbar_cpengine = [
  ['Source','-','Save','Preview'],
  ['Cut','Copy','Paste','PasteText','PasteWord'],
  ['Undo','Redo'],
  ['Bold','Italic','Underline','StrikeThrough'], '/',
  ['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote','CreateDiv'],
  ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],['Link','Unlink','Anchor'], 
  ['Image','Flash','Table','Rule','SpecialChar'], 
  ['FontFormat','FontName','FontSize'],
  ['TextColor','BGColor','RemoveFormat'], 
  ['FitWindow','ShowBlocks'], 
  ['AnchorMore','PageBreak','linebreaks']
] ;

config.toolbar_cpengine_small = [
  ['Source','-','Save'],
  ['Cut','Copy','Paste','PasteText','PasteFromWord'],['Undo','Redo'],['Bold','Italic','Underline','StrikeThrough'],['OrderedList','UnorderedList'],
  ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],['NumberedList','BulletedList','Blockquote'],'/',['Outdent','Indent'],
  ['Link','Unlink','Anchor','PageBreak'],['FontSize','TextColor','BGColor','RemoveFormat'],['Image','jwplayer'],['Code','-','Spoiler','-','SpecialChar']
] ;

config.toolbar_cpengine_very_small = [
   ['Source','-','Save'],['Cut','Copy','Paste','PasteText','PasteWord'],['Undo','Redo'],['Bold','Italic','Underline','StrikeThrough'],['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],['Link','Unlink'],
] ;


config.filebrowserLinkBrowseUrl = "../../../../admin/browser.php?typ=bild&mode=fck&target=link";
config.filebrowserImageBrowseUrl = "../../../../admin/browser.php?typ=bild&mode=fck&target=txtUrl";
config.filebrowserFlashBrowseUrl = "../../../../admin/browser.php?typ=bild&mode=fck&target=txtUrl";
config.filebrowserLinkUploadUrl = "../../../../admin/browser.php?typ=bild&mode=fck&target=link";
config.filebrowserImageUploadUrl = "../../../../admin/browser.php?typ=bild&mode=fck&target=txtUrl";



config.LinkUpload  = false ;
config.ImageUpload = false ;
config.FlashUpload = false ;
config.ImagesUpload = false ;
config.StyleUpload = false ;
config.CommentUpload = false ;
config.PlayUpload = false ;




config.toolbarCanCollapse = false;


config.skin = 'kama' ;



};

